package com.erlinyou.im.model.ofroster;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import com.erlinyou.im.model.base.AbstractDO;

@Entity
@Table(name="ofroster")
public class Ofroster extends AbstractDO{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Id
	private Long rosterID;
	
	private String username;
	
	private String jid;
	
	private byte sub;
	
	private byte ask;
	
	private byte recv;
	
	private String nick;
	
	private String permission;
	
	private byte isCanChat;
	
	private byte isCanSeePos;
	
	private byte isCanSeeExperience;
	
	private byte isSeeOtherExperience;
	
	private byte isSeeMapPhoto;
	
	private byte isAllowContactsGetPosition;
	
	

	public Ofroster(Long rosterID, String username, String jid, byte sub, byte ask, byte recv, String nick,
			String permission, byte isCanChat, byte isCanSeePos, byte isCanSeeExperience, byte isSeeOtherExperience,
			byte isSeeMapPhoto, byte isAllowContactsGetPosition) {
		super();
		this.rosterID = rosterID;
		this.username = username;
		this.jid = jid;
		this.sub = sub;
		this.ask = ask;
		this.recv = recv;
		this.nick = nick;
		this.permission = permission;
		this.isCanChat = isCanChat;
		this.isCanSeePos = isCanSeePos;
		this.isCanSeeExperience = isCanSeeExperience;
		this.isSeeOtherExperience = isSeeOtherExperience;
		this.isSeeMapPhoto = isSeeMapPhoto;
		this.isAllowContactsGetPosition = isAllowContactsGetPosition;
	}

	public Long getRosterID() {
		return rosterID;
	}

	public void setRosterID(Long rosterID) {
		this.rosterID = rosterID;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getJid() {
		return jid;
	}

	public void setJid(String jid) {
		this.jid = jid;
	}

	public byte getSub() {
		return sub;
	}

	public void setSub(byte sub) {
		this.sub = sub;
	}

	public byte getAsk() {
		return ask;
	}

	public void setAsk(byte ask) {
		this.ask = ask;
	}

	public byte getRecv() {
		return recv;
	}

	public void setRecv(byte recv) {
		this.recv = recv;
	}

	public String getNick() {
		return nick;
	}

	public void setNick(String nick) {
		this.nick = nick;
	}

	public String getPermission() {
		return permission;
	}

	public void setPermission(String permission) {
		this.permission = permission;
	}

	public byte getIsCanChat() {
		return isCanChat;
	}

	public void setIsCanChat(byte isCanChat) {
		this.isCanChat = isCanChat;
	}

	public byte getIsCanSeePos() {
		return isCanSeePos;
	}

	public void setIsCanSeePos(byte isCanSeePos) {
		this.isCanSeePos = isCanSeePos;
	}

	public byte getIsCanSeeExperience() {
		return isCanSeeExperience;
	}

	public void setIsCanSeeExperience(byte isCanSeeExperience) {
		this.isCanSeeExperience = isCanSeeExperience;
	}

	public byte getIsSeeOtherExperience() {
		return isSeeOtherExperience;
	}

	public void setIsSeeOtherExperience(byte isSeeOtherExperience) {
		this.isSeeOtherExperience = isSeeOtherExperience;
	}

	public byte getIsSeeMapPhoto() {
		return isSeeMapPhoto;
	}

	public void setIsSeeMapPhoto(byte isSeeMapPhoto) {
		this.isSeeMapPhoto = isSeeMapPhoto;
	}

	public byte getIsAllowContactsGetPosition() {
		return isAllowContactsGetPosition;
	}

	public void setIsAllowContactsGetPosition(byte isAllowContactsGetPosition) {
		this.isAllowContactsGetPosition = isAllowContactsGetPosition;
	}

	public Ofroster copy() {
		return new Ofroster(rosterID, username, jid, sub, ask, recv, nick, permission, isCanChat, isCanSeePos, isCanSeeExperience, isSeeOtherExperience, isSeeMapPhoto, isAllowContactsGetPosition);
	}

	public Ofroster() {
		super();
	}

	
	
}
